import request from '@/utils/request'

export function getConn() {
  return request({
    baseURL: process.env.VUE_APP_EPC_API,
    url: '/getConn',
    method: 'post',
    data: {}
  })
}

export function writeCode(data) {
  return request({
    baseURL: process.env.VUE_APP_EPC_API,
    url: '/writeCode',
    method: 'post',
    data: data
  })
}

export function relConn() {
  return request({
    baseURL: process.env.VUE_APP_EPC_API,
    url: '/relConn',
    method: 'post',
    data: {}
  })
}
